<?
	require("koneksi2.php");
	$nrp=$_GET["nrp"];
	$query = mysql_query("select * from registrasi where nrp='$nrp'");

	
	$jumlahdata=mysql_num_rows($query);
	while($row=mysql_fetch_row($query))
	{
		$query2 = mysql_query("select * from mk111 where kodemk='$row[1]'");
		$row2=mysql_fetch_row($query2);
		if($jumlahdata > 0)
		{
			echo "Kode MK : $row[1]\n";
			echo "Nama MK : $row2[1]\n";
			echo "Status : $row[3]\n";
			echo "SKS : $row[12]\n";
			echo "\n";
		}
	}
?>